package com.yanqu.road.server.manager.activity.selectlottery.pb;

import com.yanqu.road.entity.activity.selectlottery.data.SelectLotteryNoticeData;
import com.yanqu.road.pb.activity.SelectLotteryProto;

public class CrossSelectLotteryPb {

    /**
     * 构建选号活动通知数据
     * @param noticeData
     * @return
     */
    public static SelectLotteryProto.SelectLotteryNoticeData.Builder buildSelectLotteryNoticeData(SelectLotteryNoticeData noticeData) {
        SelectLotteryProto.SelectLotteryNoticeData.Builder builder = SelectLotteryProto.SelectLotteryNoticeData.newBuilder();
        builder.setActivityId(noticeData.getActivityId());
        builder.setServerId(noticeData.getServerId());
        builder.setUserId(noticeData.getUserId());
        builder.setRewardId(noticeData.getRewardId());
        builder.setNickname(noticeData.getNickName());
        builder.setTime(noticeData.getTime());
        return builder;
    }
}
